﻿using HiComponents.IEvolution;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WCFMINERP.Factory
{
    public partial class frmimages : Form
    {
        public frmimages()
        {
            InitializeComponent();
        }
        string _file = string.Empty;

        IEViewer iev = new HiComponents.IEvolution.IEViewer();
        public frmimages(string file)
        {
            _file = file;
            InitializeComponent();          
            iev.Dock = DockStyle.Fill;      
            iev.AutoFit = true;          
            this.Controls.Add(iev);

        }

        private void frmimages_Load(object sender, EventArgs e)
        {
            iev.Image.LoadImage(_file);
        }
    }
}
